package com.working.user.main

import android.graphics.Color
import android.os.Bundle
import android.os.Handler
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.alibaba.android.arouter.facade.annotation.Route
import com.working.libbase.base.BaseFragment
import com.working.libbase.route.RoutePath
import com.working.libcommon.exts.getString
import com.working.libcommon.exts.onClick
import com.working.user.R
import com.working.user.UserActivityMainActivity
import com.working.user.databinding.UserFragmentMainBinding
import java.util.*
import java.util.concurrent.locks.ReentrantLock


@Route(path = RoutePath.USER.MAIN_FRAGMENT)
class UserFragment : BaseFragment() {
    private lateinit var mBinding: UserFragmentMainBinding
    override fun onResume() {
        super.onResume()
        activity?.title = R.string.user_module_name.getString()
        immerseColor(Color.BLUE)
    }

    private var handler: Handler? = null
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
    }

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
    }

    override fun onCreateView(
        inflater: LayoutInflater, container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        // Inflate the layout for this fragment
        mBinding = binding(inflater, R.layout.user_fragment_main, container)
        mBinding.ivFish.onClick {
            UserActivityMainActivity.start(requireContext())
        }
        return mBinding.root
    }
}